using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;

namespace AlipayPay.Infrastructure.Config.FormModel
{
    /// <summary>
    /// 分页
    /// </summary>
    public class PagerPageModel
    {
        /// <summary>
        /// 页码
        /// </summary>
        [JsonProperty(PropertyName = "pageIndex")]
        [FromQuery(Name = "pageIndex")]
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 页大小
        /// </summary>
        [JsonProperty(PropertyName = "pageSize")]
        [FromQuery(Name = "pageSize")]
        public int PageSize { get; set; } = 20;
    }
}
